<?php

use Illuminate\Routing\Router;

Admin::routes();

Route::group([
    'prefix'        => config('admin.route.prefix'),
    'namespace'     => config('admin.route.namespace'),
    'middleware'    => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', 'HomeController@index')->name('admin.home');

    $router->get('users', 'UserController@index')->name('admin.user.index');

    $router->resource('article-cates', ArticleCateController::class);

    $router->resource('articles', ArticleController::class);

    $router->resource('rotaries', RotaryController::class);

    $router->get('config/points', 'ConfigController@pointsConfig')->name('admin.config.points');

    $router->get('orders', 'OrderController@index')->name('admin.order.index');

    // $router->get()->name();
});
